package com.stottlerhenke.simbionic.engine.parser;
import com.stottlerhenke.simbionic.engine.core.*;


public class SB_ExpError extends SB_Expression {
  protected String _msg;
  public SB_ExpError(String str) {
    super();
    _msg = str;
  }
  public SB_ExpError(String str, String arg){
    super();
    if((str.length() + arg.length()) > 255)
      System.out.println("SB_ExpError string is too long ( > 256).");
    else
      _msg = str + arg;
  }
  public boolean IsValid(){ return false; }

  public EExpressionType GetType(){ return EExpressionType.kBadExpression;}
  public String GetErrorMsg(){ return _msg; }
  public SB_Variable Evaluate(SB_Entity entity, SB_ExecutionFrame contextFrame){
    return null;
  }
}